package javaweb.selectcclass.test.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@Component
public class Submit {
    @NotNull(message = "???")
    @Size(min = 1, message = "必选一门课")
    private List<String> courses;
}
